x11: Query size on real drawable
authorBenjamin Otte <otte@redhat.com>
Mon, 19 Jul 2010 11:15:10 +0000 (13:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Jul 2010 14:42:46 +0000 (16:42 +0200)
The X11 drawable does not have a clue about the real size of the
surface.

This might also be the cause for:
https://bugzilla.gnome.org/show_bug.cgi?id=599574

gdk/x11/gdkdrawable-x11.c

index 68379bf7d298c1786ee11595c4809c0d5cdd1d4b..e48d8df28682a05d8cdf384b6cd0d53dd405d551 100644 (file)
@@ -1463,7 +1463,7 @@ gdk_x11_ref_cairo_surface (GdkDrawable *drawable)
     {
       int width, height;
   
-      gdk_drawable_get_size (drawable, &width, &height);
+      gdk_drawable_get_size (impl->wrapper, &width, &height);
 
       impl->cairo_surface = _gdk_windowing_create_cairo_surface (drawable, width, height);